<template>
  <div class="item-info">
    <div class="item-title">{{itemTitle}}</div>
    <div class="item-data">{{itemData}}</div>
  </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';

export default defineComponent({
  name: 'ItemInfo',
  props: {
    itemTitle: {
      type: String as PropType<string>,
      default: ""
    },
    itemData: {
      type: String as PropType<string>,
      default: ""
    }
  },
});
</script>

<style lang="less" scoped>
.item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;

  .item-title {
    height: 16px;
    line-height: 16px;
    font-size: 16px;
    font-weight: 400;
    color: @font-grey;
  }

  .item-data {
    height: 34px;
    line-height: 34px;
    font-size: 34px;
    font-weight: 500;
    color: @font-black;
    margin-top: 18px;
  }
}
</style>